﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _52简繁转换
{
    class Program
    {
        private const string Jiao = "一丁七三下丈上丑丐不丙世丕且丘丞丢并中串丸丹主乃久么之尹乍乏乎乒乓乖乘乙九也乞乩乳干乱了予事二于云井互五亘些亚基亡亢交亦亥亨享京亭亮毫亶人仁什仆仇仍今介仄仂以付仔仕他仗代令仙仞仝仿伉伙伊夫伍伐休伏仲件任仰仳份企伎忤仱伀价位住伫佗佞伴佛何估佑佐伽布伺伸佃占似但佣作你伯低伶余佝体佚佟佯依侍佳使佬供例来侃佰倂侈佩佻仑佾侏侘佼佶侉侑信侵侯便侠俑保促侣俘俟俊俗侮俐俄系俚俎俞局倌倍傲俛俯倦倥俸倩幸俩值借倚倒们俺倡伥倔倨俱个候倘修倭倪俾伦仓咱俳倞倅倇倓提倜倏伪停假偃偌做伟健偶偎偕侦侧偷偏家傍傅备杰傀伧伞俲傜佣债傲传仅倾催伤傻偬伛偻佥僧僮僭僚仆像侨雇亿仪僻僵价侬侩儆儇儌俭儒尽俦傧侪优偿儡储儳俪俨傥兀元允充兄光兄兆先兑克免兔儿兜竞入内两八六兮公共兵具其典兼冀冉再册冒冑冕最冗冠冤冥冢幂冬冰冱冶冷冽冼冻凌准凋凄凄凛凝几凰凯凵凶凹出凸函刀刁刃分刈刊列刑划刎别判利删刨刻券刷刺到刮制剁剎剃削前刺克则剖剜剔刚剥剪副割剀创剩剿铲剽划剧劈刘剑刽剂力加功劣劫助努劬劭劾勉勃劲勒务勘动劳胜募剿勤势勋励劝勺匀勾勿包匆匈匍匐匏匕化北匙匝匡匠匣匪匦汇匮匹匿区匾十千午升卅廿仟半卉卒协卓卑南博卜卞卡占卦卯卮印危即卵卷卸恤却卿厂厄厚原厝厥厌厉去参又友及反取叔受叛叟叡丛口古右召叮叨叼司叵叫另";
        private const string Fan = "一丁七三下丈上丑丐不丙世丕且丘丞丟並中串丸丹主乃久么之尹乍乏乎乒乓乖乘乙九也乞乩乳乾亂了予事二于云井互五亙些亞基亡亢交亦亥亨享京亭亮毫亶人仁什仆仇仍今介仄仂以付仔仕他仗代令仙仞仝仿伉伙伊伕伍伐休伏仲件任仰仳份企伎忤仱伀价位住佇佗佞伴佛何估佑佐伽佈伺伸佃佔似但佣作你伯低伶余佝体佚佟佯依侍佳使佬供例來侃佰倂侈佩佻侖佾侏侘佼佶侉侑信侵侯便俠俑保促侶俘俟俊俗侮俐俄係俚俎俞侷倌倍傲俛俯倦倥俸倩倖倆值借倚倒們俺倡倀倔倨俱個候倘修倭倪俾倫倉偺俳倞倅倇倓提倜倏偽停假偃偌做偉健偶偎偕偵側偷偏傢傍傅備傑傀傖傘俲傜傭債傲傳僅傾催傷傻傯傴僂僉僧僮僭僚僕像僑僱億儀僻僵價儂儈儆儇儌儉儒儘儔儐儕優償儡儲儳儷儼儻兀元允充兄光兄兆先兌克免兔兒兜競入內兩八六兮公共兵具其典兼冀冉再冊冒冑冕最冗冠冤冥冢冪冬冰冱冶冷冽冼凍凌准凋凄淒凜凝几凰凱凵凶凹出凸函刀刁刃分刈刊列刑划刎別判利刪刨刻券刷刺到刮制剁剎剃削前刺剋則剖剜剔剛剝剪副割剴創剩剿剷剽劃劇劈劉劍劊劑力加功劣劫助努劬劭劾勉勃勁勒務勘動勞勝募勦勤勢勳勵勸勺勻勾勿包匆匈匍匐匏匕化北匙匝匡匠匣匪匭匯匱匹匿區匾十千午升卅廿仟半卉卒協卓卑南博卜卞卡占卦卯卮印危即卵卷卸卹卻卿厂厄厚原厝厥厭厲去參又友及反取叔受叛叟叡叢口古右召叮叨叼司叵叫另";
        static void Main(string[] args)
        {
            Hashtable ht = new Hashtable();
            for (int i = 0; i < Jiao.Length; i++)
            {
                ht.Add(Jiao[i], Fan[i]);
            }
            //便利用户输入的字符串 将每一个字符串都转换成繁体字
            Console.WriteLine("请输入你要转换的字");
            string input = Console.ReadLine();
            for(int i = 0; i < input.Length; i++)
            {
                if (ht.ContainsKey(input[i]))
                {
                    Console.Write(ht[input[i]]);
                }
                else
                {
                    Console.Write(input[i]);
                }
            }
            Console.ReadKey();
        }
    }
}
